    <div class="top_bar_wrapper">
        <div id="top_bar" class="top_bar">
            <div id="top_logo" class="top_logo"><a href="/"><img class="logo_img" src="{{ staticUrl }}/img/logo.png" alt="logo" /></a></div>
            <span id="top_bar_links" class="top_bar_links">
                {% if top_connect_logo %}
                    <span class="user_link xn_logo_button">
                        <xn:login-button autologoutlink="true" size="medium"></xn:login-button>
                    </span>
                {% else %}
                    {% if isLoggedIn %}
                        <span class="user_link"><a href="/logout">退出</a><img src="http://xnimg.connect.renren.com/img/connect/connect_logo/renren/logo.gif" alt="connect" class="connect_logo"/></span>
                    {% else %}
                        <span class="user_link"><a href="/login{% if loginCallbackParams %}?{{ loginCallbackParams }}{% endif %}">登录</a></span>
                    {% endif %}
                {% endif %}
                <span class="user_link"><a href="/">首页</a></span>
                <span class="user_link"><a href="/profile">我的主页</a></span>
                {% if False %}<span class="user_link"><a href="#">设置</a></span>{% endif %}
                {% if isAdministrator %}<span class="user_link"><a href="/admin/ebookmapping">后台</a></span>{% endif %}
            </span>
        </div>
    </div>
